//
//  YDFont.h
//  IngCard
//
//  Created by kf on 2017/8/14.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import <Foundation/Foundation.h>

#define UISemiblodFontMake(size) [UIFont semiblodFontOfSize:size]
#define UIThinFontMake(size) [UIFont thinFontOfSize:size]
#define UIMediumFontMake(size) [UIFont mediumFontOfSize:size]
#define UIRegularFontMake(size) [UIFont regularFontOfSize:size]
#define UILightFontMake(size) [UIFont lightFontOfSize:size]

@interface UIFont (YDStyle)
+ (UIFont *)lightFontOfSize:(CGFloat)fontSize;
+ (UIFont *)thinFontOfSize:(CGFloat)fontSize;
+ (UIFont *)mediumFontOfSize:(CGFloat)fontSize;
+ (UIFont *)semiblodFontOfSize:(CGFloat)fontSize;
+ (UIFont *)regularFontOfSize:(CGFloat)fontSize;
@end



@interface YDStyle : NSObject
+(YDStyle *) style:(UIFont *) font color:(UIColor *) color;
@property(nonatomic, strong) UIFont *font;
@property(nonatomic, strong) UIColor *color;
@end

typedef enum : NSUInteger {
    YDStyleDefault,
} YDStyleConfig;


#define STYLE [YDStyleManager sharedInstance]
@interface YDStyleManager :NSObject

@property(nonatomic, strong) YDStyle *name;
@property(nonatomic, strong) YDStyle *timeSelection;
@property(nonatomic, strong) YDStyle *navigationBar;
@property(nonatomic, strong) YDStyle *roundButton;
@property(nonatomic, strong) YDStyle *roundSquareButton;
@property(nonatomic, strong) YDStyle *myList;
@property(nonatomic, strong) YDStyle *contactList;
@property(nonatomic, strong) YDStyle *myCompany;
@property(nonatomic, strong) YDStyle *myOccupation;

@property(nonatomic, strong) YDStyle *tabSelected;
@property(nonatomic, strong) YDStyle *tab;

@property(nonatomic, strong) YDStyle *myCardCardName;
@property(nonatomic, strong) YDStyle *myCardActiveFeed;
@property(nonatomic, strong) YDStyle *myCardPersionName;

@property(nonatomic, strong) YDStyle *signDetailDescription;
@property(nonatomic, strong) YDStyle *signConstruction;
@property(nonatomic, strong) YDStyle *signDescription;


+ (instancetype)sharedInstance;
- (void) renderDefault;
@end
